package structure;

import java.util.Comparator;

public class AreasComparator implements Comparator<Area>{

	@Override
	public int compare(Area o1, Area o2) {
		if (o1.getPriority() > o2.getPriority())
			return -1;
		if (o1.getPriority() < o2.getPriority())
			return 1;
		return 0;
	}
	

}
